import request from '../utils/request'

export const getAllChannels = () => request({
    url: '/v1_0/channels'
})

export const addUserChannel = (channels) => request({
    url: '/v1_0/user/channels',
    method: 'PATCH',
    data: {
        channels: [channels]
    }
})

export const deleteUserChannel = (channelId) => request({
    url: `/v1_0/user/channels/${channelId}`,
    method: 'DELETE',
})